package com.diliuzun.delivery.service;

import com.diliuzun.delivery.mapper.UserAnalysisMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

@Service
public class UserAnalysisService {
    @Autowired
    private UserAnalysisMapper userAnalysisMapper;

    public HashMap<String,Object> getUserAnalysisData(){
        HashMap<String,Object> map = new HashMap<>();

        // 用户类型
        map.put("userType",userAnalysisMapper.getUserDataByType());

        // 用户性别
        map.put("userSex", userAnalysisMapper.getUserDataBySex());

        return map;
    }
}
